package com.auction.mapper;

import com.auction.entity.ProductDetailImages;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ProductDetailImagesMapper extends BaseMapper<ProductDetailImages> {
    //根据产品id获取详情图
    List<Map> BpIdDimages(@Param("productId") Integer productId);
    //批量插入
    int setDetailImages(@Param("productDetailImages") List<ProductDetailImages> productDetailImages,@Param("product_id") Integer productId);
    //根据商品id删除数据
    int byProductIdDelete(@Param("Product_id") Integer productId);

}
